package com.example.apidocserver.domain.document.entity;

import java.util.Date;

import com.example.apidocserver.infrastructure.base.BaseEntity;
import com.example.apidocserver.infrastructure.constants.SystemConstants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * (ApiDocument)实体类
 *
 * @author makejava
 * @since 2023-02-22 22:56:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ApiDocument  extends BaseEntity {
    public ApiDocument(Integer orderNo) {
        this.orderNo = orderNo;
        this.published = SystemConstants.NO;
        this.spaceId = SystemConstants.YES;
        this.stateId = SystemConstants.YES;
    }

    private Integer id;
    /**
     * 文档名称
     */
    private String docName;
    /**
     * 文档说明
     */
    private String docDesc;
    /**
     * 状态id
     */
    private Integer stateId;
    /**
     * 是否公开，0非公开，1公开
     */
    private Integer published;
    /**
     * 拥有者
     */
    private Integer owner;
    /**
     * 工作空间id
     */
    private Integer spaceId;
    /**
     * 排序
     */
    private Integer orderNo;
}

